﻿@model Inscriptionem.Models.Menu.Views.LanguagesViewModel
           
@{
    string menuItemClass = "page_item";
    string selectedMenuItemClass = "current_page_item";
}

<ul class="navis navi-primary" style="margin-left: -85px;">
    <li class="@menuItemClass"><a href="#">Languages »</a>
        <ul class="children">
        @foreach (var language in Model.Languages)
        { 
        <text>
	        <li class="@(Inscriptionem.Localization.Language.Current.Value == language.Name ? selectedMenuItemClass : menuItemClass)"><a href="/@(language.Name)/">@(language.LocalizedName)</a>
        </text>
        }
        </ul>
    </li>
</ul>